package cn.com.sbell.vss;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import cn.com.sbell.vss.util.RandomGUID;

/**
 * Base class for DAO objects.
 * 
 * @author Yifu.HUANG
 */
public abstract class BaseDao extends SqlMapClientDaoSupport {
	protected final Log log = LogFactory.getLog(this.getClass());

	public static String generateRandomGUID() {
		return new RandomGUID().toString();
	}

	protected Map getParamMap(String key, Object value) {
		Map map = new HashMap();
		map.put(key, value);
		return map;
	}

	// protected SqlMapClient sqlMapClient;
	//
	// public void setSqlMapClient(SqlMapClient sqlMapClient) {
	// this.sqlMapClient = sqlMapClient;
	// }

}
